package com.project.bean;

import java.time.LocalDate;

/**
 * 员工参与项目关系实体类
 */
public class EmployeeDoProject {
    /**ID*/
    private int id;
    /**员工*/
    private EmployeeBean employee;
    /**项目*/
    private ProjectBean project;
    /**员工开工时间*/
    private LocalDate startDate = LocalDate.now();
    /**员工完工时间*/
    private String  endDate = "未完成";

    public EmployeeDoProject() {
    }

    public EmployeeDoProject(int projectId, int  employeeId) {
        this.project = new ProjectBean();
        this.project.setId(projectId);
        this.employee = new EmployeeBean();
        this.employee.setId(employeeId);
    }

    public EmployeeBean getEmployee() {
        return employee;
    }

    public void setEmployee(EmployeeBean employee) {
        this.employee = employee;
    }

    public ProjectBean getProject() {
        return project;
    }

    public void setProject(ProjectBean project) {
        this.project = project;
    }

    public LocalDate getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDate startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }


    @Override
        public String toString() {
            return "EmployeeDoProject{" +
                    "id=" + id +
                    ", employee=" + employee +
                    ", project=" + project +
                    ", startDate=" + startDate +
                    ", endDate='" + endDate + '\'' +
                    '}';

    }
}
